﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.fmtx.Model;


namespace com.fmtx.IDal
{
    public interface IPicture:IBase<Picture>
    {
        /// <summary>
        /// 读取图片
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        IList<Picture> Query(int index, int size);

        /// <summary>
        /// 读取最热图片
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="title"></param>
        /// <param name="keyword"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        IList<Picture> QureyHost(int index, int size, string title, string keyword);

        /// <summary>
        /// 读取赞图片
        /// </summary>
        /// <param name="index"></param>
        /// <param name="size"></param>
        /// <param name="title"></param>
        /// <param name="keyword"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        IList<Picture> QureyPraise(int index, int size, string title, string keyword);

        /// <summary>
        /// 相关最新图片
        /// </summary>
        /// <param name="size"></param>
        /// <param name="uid"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        IList<Picture> Query(int size, int uid, string address);

        /// <summary>
        /// 相关最热图片
        /// </summary>
        /// <param name="size"></param>
        /// <param name="uid"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        IList<Picture> QueryHost(int size, int uid, string address);

        /// <summary>
        /// 用户指定文件夹的图片列表
        /// </summary>
        /// <param name="uid"></param>
        /// <param name="typeid"></param>
        /// <returns></returns>
        IList<Picture> QueryByUser(int uid, int typeid);

        /// <summary>
        /// 相关图片
        /// </summary>
        /// <param name="size"></param>
        /// <param name="address"></param>
        /// <returns></returns>
        IList<Picture> QueryAbout(int size, string address);

        /// <summary>
        /// 根据关键词找图片
        /// </summary>
        /// <param name="size"></param>
        /// <param name="keyword"></param>
        /// <returns></returns>
        IList<Picture> QueryByKeyword(int size, string keyword);
    }
}
